home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks '96 / Booting Gallery / Booting Gallery (source) / (Libraries) / Hubauer / DisableInterupts / DisableInterupts.h
Encoding:
C/C++ Source or Header  |  1996-06-22  |  209 b   |  16 lines  |  [TEXT/MMCC]

  1.  
  2.  
  3. static short asm DisableInterupts()
  4. {
  5.     move.w SR,d0
  6.     ori.w #0x0700,SR
  7.     rts
  8. }
  9.  
  10. #pragma parameter  EnableInterupts(__D0)
  11. static void asm EnableInterupts(short saveSR)
  12. {
  13.     move.w d0,-(a7)
  14.     move.w (a7)+,SR
  15.     rts
  16. }